package com.yl.auth.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;

@ApiModel(value = "薪资明细")
@Data
@TableName("xinzimingxi")
public class XinzimingxiBean {
    @ApiModelProperty("主键id")
    @TableField("id")
    @TableId(type = IdType.AUTO)
    private Long id;
    @ApiModelProperty("日期")
    @DateTimeFormat(pattern = "yyyy-MM-dd hh:mm")
    @TableField("timee")
    private Date timee;
    @ApiModelProperty("获得积分")
    @TableField("numbers")
    private Double numbers;
    @ApiModelProperty("获得薪资")
    @TableField("money")
    private Double money;


    /**
     * 员工姓名
     */
    @TableField(exist = false)
    private String name;

    /**
     * 联系方式
     */
    @TableField(exist = false)
    private String phone;

    /**
     * 身份证号
     */
    @TableField(exist = false)
    private String idcard;
}
